import { OrderItem } from '../types/order';

export const mockOrders: OrderItem[] = [
  {
    id: 'ORD001',
    status: 'renting',
    title: 'Renting',
    time: '2024-01-15 14:30',
    description: 'Joltzly Power Bank Station - Central Mall, Floor 2, Near Food Court',
    amount: 0.00,
    merchantName: 'Central Mall',
    stationId: 'ST001',
    powerBankId: 'PB123456',
    rentalDate: '2024-01-15 14:30',
    duration: '2h 15m',
    orderAmount: 5.00,
    finalAmount: 0.00
  },
  {
    id: 'ORD002',
    status: 'pendingPayment',
    title: 'Pending payment',
    time: '2024-01-14 16:45',
    description: 'Joltzly Power Bank Station - Tech Hub, Building A, Lobby Area',
    amount: 3.50,
    merchantName: 'Tech Hub',
    stationId: 'ST002',
    powerBankId: 'PB789012',
    rentalDate: '2024-01-14 16:45',
    returnDate: '2024-01-14 19:30',
    duration: '2h 45m',
    orderAmount: 5.00,
    couponDiscount: 1.00,
    finalAmount: 3.50
  },
  {
    id: 'ORD003',
    status: 'completed',
    title: 'Completed',
    time: '2024-01-13 10:20',
    description: 'Joltzly Power Bank Station - Shopping Center, Ground Floor, Near Entrance',
    amount: 2.00,
    merchantName: 'Shopping Center',
    stationId: 'ST003',
    powerBankId: 'PB345678',
    rentalDate: '2024-01-13 10:20',
    returnDate: '2024-01-13 12:20',
    duration: '2h 0m',
    orderAmount: 4.00,
    promoDiscount: 2.00,
    finalAmount: 2.00,
    paymentMethod: 'Credit Card'
  },
  {
    id: 'ORD004',
    status: 'underInvestigation',
    title: 'Under investigation',
    time: '2024-01-12 18:15',
    description: 'Joltzly Power Bank Station - Airport Terminal, Gate 15, Waiting Area',
    amount: 0.00,
    merchantName: 'Airport Terminal',
    stationId: 'ST004',
    powerBankId: 'PB901234',
    rentalDate: '2024-01-12 18:15',
    duration: '1h 30m',
    orderAmount: 3.00,
    finalAmount: 0.00
  },
  {
    id: 'ORD005',
    status: 'reportedLost',
    title: 'Reported lost',
    time: '2024-01-11 20:00',
    description: 'Joltzly Power Bank Station - University Campus, Library Building, 3rd Floor',
    amount: 25.00,
    merchantName: 'University Campus',
    stationId: 'ST005',
    powerBankId: 'PB567890',
    rentalDate: '2024-01-11 20:00',
    duration: '3h 0m',
    orderAmount: 6.00,
    finalAmount: 25.00,
    paymentMethod: 'Credit Card'
  }
];

export const getOrderById = (id: string): OrderItem | undefined => {
  return mockOrders.find(order => order.id === id);
};
